﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Microsoft.Samples.ServiceHosting.StorageClient;

namespace Ciripescu_WebRole.Entities
{
    public class Vot :TableStorageEntity
    {
         #region Public Methods        

        public Vot() { }

        public Vot(string userName,DateTime time, string IP, string UserAgent)
            : base(userName, string.Format("{0:D19}", DateTime.MaxValue.Ticks - DateTime.UtcNow.Ticks))
        {
            this.Version = Properties.Settings.Default.Version;
            this.time = time;
            this.IP = IP;
            this.UserAgent = UserAgent;
        }
        
        #endregion 

        #region Public Properties

        public string IP { get; set; }
        public string UserAgent { get; set; }
        public DateTime time { get; set; }
        public string Version { get; set; }
        
        #endregion 

        #region Private Methods
        
        
        #endregion 

        #region Private Members

        private string m_blobId = String.Empty;
        #endregion 
    }
}
